/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dsmsforkjoin;

import tuplegenerator.Tuple;

/**
 *
 *
 */
public abstract class AbstractInputHandler<T extends Tuple> implements Runnable {
    
    protected RunMe runMe = null;
    
    protected ForkList<IForkQueue<T>, T> flist = null;
    protected FJoin<T> fj = null;

    public AbstractInputHandler(RunMe rm, FJoin<T> fjoin) {
        this.runMe = rm;
        this.flist = fjoin.getFlist();
        this.fj = fjoin;
    }
    
    public RunMe getRunMe() {
        return runMe;
    }

    public void setRunMe(RunMe runMe) {
        this.runMe = runMe;
    }

    public FJoin<T> getFj() {
        return fj;
    }

    public ForkList<IForkQueue<T>, T> getFlist() {
        return flist;
    }

    public void setFj(FJoin<T> fj) {
        this.fj = fj;
    }

    public void setFlist(ForkList<IForkQueue<T>, T> flist) {
        this.flist = flist;
    }
    
    
}
